import {createRouter, createWebHistory} from 'vue-router'
import Explorer from "../views/Explorer.vue";
import Markdown from "../views/Markdown.vue";
import Text from "../views/Text.vue";
import Image from "../views/Image.vue";


const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: "/",
            name: "Home",
            redirect: () => Explorer,
        },
        {
            path: "/explorer",
            name: "Explorer",
            component: Explorer,
            children: [
                {
                    path: "/markdown",
                    name: "Markdown",
                    component:  Markdown
                },
                {
                    path: "/text",
                    name: "Text",
                    component: Text,
                },
                {
                    path: "/image",
                    name: "Image",
                    component: Image,
                },
            ]
        },
    ]
})
export default router
